<html>
<body>
Reports calls of the JUnit 3's <code>super.tearDown()</code> method that are not performed inside a <code>finally</code> block.
If an exception is thrown before <code>super.tearDown()</code> is called it could lead to inconsistencies and leaks.
<p><b>Example:</b></p>
<pre><code lang="java">
  public class AnotherTest extends CompanyTestCase {
    private Path path;

    @Override
    protected void setUp() throws Exception {
      super.setUp();
      path = Files.createTempFile("File", ".tmp");
    }

    @Override
    protected void tearDown() throws Exception {
      Files.delete(path);
      super.tearDown();
    }
  }
</code></pre>
<p>Improved code:</p>
<pre><code lang="java">
  public class AnotherTest extends CompanyTestCase {
    private Path path;

    @Override
    protected void setUp() throws Exception {
      super.setUp();
      path = Files.createTempFile("File", ".tmp");
    }

    @Override
    protected void tearDown() throws Exception {
      try {
        Files.delete(path);
      } finally {
        super.tearDown();
      }
    }
  }
</code></pre>
  <!-- tooltip end -->
</body>
</html>